﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Phone
{
    internal class ConcreteMobilephone : Mobilephone
    {
        public override void Operation(int ce)
        {
            SendMessage();
            //1为语音，其余为视频
            if(ce == 1)
            {
                Call1();
            } else
            {
                Call2();
            }
        }
        public void SendMessage()
        {
            Console.WriteLine("发送短信");
        }
        public void Call1()
        {
            Console.WriteLine("语音通话");
        }
        public void Call2()
        {
            Console.WriteLine("视频通话");
        }
    }
}
